#!/bin/sh

#cd to directory this script is in
CWD=$(pwd)
cd `dirname $0`

uics Ui_MainWindow.ui -o Ui_MainWindow.cs
uics Ui_TilemapWidget.ui -o Ui_TilemapWidget.cs
uics Ui_MapDocument.ui -o Ui_MapDocument.cs
uics Ui_ObjectsTab.ui -o Ui_ObjectsTab.cs
uics Ui_TilesTab.ui -o Ui_TilesTab.cs
csrcc resources.qrc -o resources.cs

#change back so we dont upset build
cd $CWD

echo "Finished generating UI... We don't check for errors ourselves, but if this is the only output, it's a pretty safe bet, yo."
